﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace timetabling.core
{
    public class Basic
    {
        /// <summary>
        /// Con el interrogante hacemos que un tipo de datos sea nullable Guid?
        /// NewGuid()
        /// 
        /// </summary>
        private Guid id;
        public Guid Id
        {
            get {
                if (id == Guid.Empty) {
                    id = Guid.NewGuid();
                }

                return id;
            }
            set {
                id = value;
            }

        }
    }
}
